home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / shareware / Flash_Oyunlar.exe / bumperball.swf / scripts / DefineSprite_70 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-07-13  |  613 b   |  16 lines

  1. varBytes = _root.getBytesLoaded();
  2. varKbytes = Math.round(_root.getBytesLoaded() / 1024 * 100 / 100);
  3. varTotalBytes = Math.round(_root.getBytesTotal() / 1024 * 100 / 100);
  4. if(1024 < varBytes)
  5. {
  6.    txtBytes = varKbytes add " K of " add varTotalBytes add " K";
  7. }
  8. else
  9. {
  10.    txtBytes = varBytes add " Bytes of " add varTotalBytes add " Kbytes";
  11. }
  12. txtPercentage = Math.round(_root.getBytesLoaded() / _root.getBytesTotal() * 100) add "%";
  13. varMove = Math.Round(_root.getBytesLoaded() / _root.getBytesTotal() * 458.8);
  14. setProperty("_root.loader.mcLoad", _X, -455 + varMove);
  15. test = _root.loader.mcLoad._x;
  16.